﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/continut.Master" AutoEventWireup="true" CodeBehind="home.aspx.cs" Inherits="Ciripescu_WebRole.home" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="WriteCirip.ascx" tagname="WriteCirip" tagprefix="uc1" %>
<%@ Register src="DisplayCirips.ascx" tagname="DisplayCirips" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="display:none">
<img src="/images/buttons/cancel_reply.png" alt="" />
<img src="/images/buttons/cancel_reply_o.png" alt="" />
<img src="/images/buttons/scrie.png" alt="" />
<img src="/images/buttons/scrie_o.png" alt="" />
</div>
<div style="display:none">
<img src="/images/buttons/delete.png" alt="" />
<img src="/images/buttons/delete_full.png" alt="" />
<img src="/images/buttons/reply.png" alt="" />
<img src="/images/buttons/reply_o.png" alt="" />
</div>

<div>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="WriteCirip1" EventName="Scrie"/>
    <asp:AsyncPostBackTrigger ControlID="DisplayCirips1" EventName="Raspunde"/>
    </Triggers>        
        <ContentTemplate>
            <uc1:WriteCirip ID="WriteCirip1" runat="server" />            
        </ContentTemplate>
    </asp:UpdatePanel>
    
<br />

    <asp:Timer ID="Timer1" runat="server" Interval="5000" ontick="Timer1_Tick">
    </asp:Timer>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
    </Triggers>
    <ContentTemplate>
        <uc2:DisplayCirips ID="DisplayCirips1" runat="server" Type="ForTheCurrentUser"/>        
    </ContentTemplate>
    </asp:UpdatePanel>   
<br />

</div>
</asp:Content>
